package service;

import org.apache.ibatis.annotations.Param;
import pojo.News;
import pojo.PageBean;

import java.util.List;

public interface Nservice {
    PageBean<News> selectByPageAndCondition(int currentPage, int pageSize , News news);

    void deleteByids( int[] ids);

    void Newsdelete(int id);

    List<News> NewsSelect();
    News selectById(int id);

    int Newsinsert(News news);

    void addup(int id,int view_count);

    List<News> NewsSelectByV();
    List<News> NewsSelectBytime();
}
